/*
 * @Author: Dorange.Wang
 * @Date: 2021-07-28 11:07:48
 * @LastEditors: your name
 * @LastEditTime: 2021-07-29 10:54:29
 * @Description: file content
 */
import Vue from 'vue'
import Template from './tableDefaultOrderModal'

class Instance {
  constructor () {
    this.instance = null
  }

  static _init () {
    if (!this.instance) {
      const Profile  = Vue.extend(Template)
      this.instance = new Profile({
        el: document.createElement('div')
      })
      document.body.appendChild(this.instance.$el)
    }
  }
  
  static init (...arg) {
    this._init()
    return this.instance.init(...arg)
  }
}

export default Instance